﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkFlowSearch.aspx.cs"
    Inherits="ZX.WebApp.WorkFlow.WorkFlowSearch" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Crm/Css/default.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            height: 10px;
            width: 50%;
        }
        .style2
        {
            font-size: 14px;
            line-height: 1.5;
            color: #425460;
            font-weight: bold;
            font-family: "宋体";
            width: 50%;
        }
    </style>
    <link href="../Crm/Css/default.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/reset-fonts-grids/reset-fonts-grids.css" />
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/container/assets/skins/sam/container.css" />
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/menu/assets/skins/sam/menu.css" />
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/button/assets/skins/sam/button.css" />
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/resize/assets/skins/sam/resize.css" />
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/layout/assets/skins/sam/layout.css" />
    <link type="text/css" rel="stylesheet" href="../Scripts/yui_2.9.0/build/datatable/assets/skins/sam/datatable.css" />
    <link href="../Scripts/yui_2.9.0/build/treeview/assets/treeview-core.css" rel="stylesheet"
        type="text/css" />
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/fonts/fonts-min.css" />
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/treeview/assets/skins/sam/treeview.css" />
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/element/element-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/datasource/datasource-min.js"></script>
    <!-- OPTIONAL: JSON Utility (for DataSource) -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/json/json-min.js"></script>
    <!-- OPTIONAL: Connection Manager (enables XHR for DataSource) -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/connection/connection-min.js"></script>
    <!-- OPTIONAL: Get Utility (enables dynamic script nodes for DataSource) -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/get/get-min.js"></script>
    <!-- OPTIONAL: Drag Drop (enables resizeable or reorderable columns) -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/dragdrop/dragdrop-min.js"></script>
    <!-- OPTIONAL: Calendar (enables calendar editors) -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/calendar/calendar-min.js"></script>
    <!-- Source files -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/datatable/datatable-min.js"></script>
    <script type="text/javascript" src="../scripts/yui_2.9.0/build/layout/layout-min.js"></script>
    <script type="text/javascript" src="../scripts/yui_2.9.0/build/button/button-min.js"></script>
    <script type="text/javascript" src="../scripts/yui_2.9.0/build/container/container-min.js"></script>
    <script type="text/javascript" src="../scripts/yui_2.9.0/build/treeview/treeview-min.js"></script>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <link href="../Styles/base.css" rel="stylesheet" type="text/css" />
    <link href="../../Css/hfmenu.css" type="text/css" rel="stylesheet" />
    <script src="../Scripts/jquery-1.6.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.json-2.2.js" type="text/javascript"></script>
    <script src="../Scripts/Jquery.form.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.calendar.js" type="text/javascript"></script>
    <link href="../Styles/default/calendar.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/CombinButton.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
    <script language="javascript" type="text/javascript">
        YAHOO.namespace("example.container")
        function ShowDialog(fn, id, src) {
            var handleSubmit = function () {
                var editwindow = document.getElementById("EditUIWindow4");
                if (editwindow) {
                    editwindow.contentWindow.ChooseInfo();
                }
                YAHOO.example.container.dialog3.hide();
            };
            var handleCancel = function () {
                this.cancel();
            };
            var handleSuccess = function (o) {
                var response = o.responseText;
                response = response.split("<!")[0];
                document.getElementById("resp").innerHTML = response;
            };
            var handleFailure = function (o) {
                alert("Submission failed: " + o.status);
                //                  var response = o.responseText;
                //                  response = response.split("<!")[0];
                //                  document.getElementById("resp").innerHTML = response;
            };
            var handleFailure = function (o) {
                alert('出错了handleFailure');
            };
            var const_EditWindowWidth = "400px",
		const_EditWindowHeight = "300px";
            // Remove progressively enhanced content class, just before creating the module
            YAHOO.util.Dom.removeClass("dialog3", "yui-pe-content");

            // Instantiate the Dialog
            YAHOO.example.container.dialog3 = new YAHOO.widget.Dialog("dialog3",
							    { width: const_EditWindowWidth,
							        height: const_EditWindowHeight,
							        fixedcenter: true,
							        visible: false,
							        draggable: true,
							        close: true,
							        autofillheight: "body",
							        constraintoviewport: true,
							        buttons: [{ text: "确定", handler: handleSubmit, isDefault: true },
								          { text: "取消", handler: handleCancel}]
							    });
            // Wire up the success and failure handlers
            YAHOO.example.container.dialog3.callback = { success: handleSuccess,
                failure: handleFailure
            };
            // Render the Dialog
            YAHOO.example.container.dialog3.render();
            _fn = fn;
            _id = id;
            document.getElementById("EditUIWindow4").src = src;
            YAHOO.example.container.dialog3.show();
        }
      
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="border-right: #bdcaea 2px solid; border-bottom: #bdcaea 2px solid; border-left: #bdcaea 2px solid;
        border-top: #bdcaea 2px solid; height: 320px">
        <div style="width: 100%; height: 120px">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="bg_up" align="center">
                <tr>
                    <td class="style1" style="width: 100%" colspan="2">
                        <hr />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="title_1" style="width: 50%; border-bottom: #bdcaea 1px solid;
                        border-top: #bdcaea 1px solid;">
                        <span style="font-size: 10pt;">&nbsp;流程类型: </span>
                        <asp:DropDownList ID="ddlCaption" runat="server" Height="25px" Width="200px" AutoPostBack="true"
                            OnSelectedIndexChanged="ddlCaption_SelectedIndexChanged">
                            <asp:ListItem Text="请选择" Value="0"></asp:ListItem>
                            <asp:ListItem Text="待办任务" Value="1"></asp:ListItem>
                            <asp:ListItem Text="已完成流程" Value="2"></asp:ListItem>
                            <asp:ListItem Text="我的申请" Value="3"></asp:ListItem>
                            <asp:ListItem Text="我的审批(未完成)" Value="4"></asp:ListItem>
                            <asp:ListItem Text="我的审批(已完成)" Value="5"></asp:ListItem>
                        </asp:DropDownList>
                        <span style="font-size: 10pt;">(必填项) </span>
                    </td>
                </tr>
                <tr>
                    <td class="style1" style="width: 100%" colspan="2">
                        <hr />
                    </td>
                </tr>
                <tr style="width: 100%; height: 35px">
                    <td class="style2" style="border-right: #bdcaea 1px solid; border-bottom: #bdcaea 1px solid;
                        border-top: #bdcaea 1px solid;">
                        <span style="font-size: 10pt;">&nbsp;流程编号: </span>
                        <asp:TextBox runat="server" ID="txbWorkFlowNo" Width="302px"></asp:TextBox>
                    </td>
                    <td class="title_1" style="width: 50%; border-bottom: #bdcaea 1px solid; border-top: #bdcaea 1px solid;">
                        <span style="font-size: 10pt;">紧急程度: </span>
                        <asp:DropDownList ID="ddlPriority" runat="server" Height="25px" Width="143px" OnSelectedIndexChanged="ddlPriority_SelectedIndexChanged">
                            <asp:ListItem Text="请选择" Value=""></asp:ListItem>
                            <asp:ListItem Text="特急" Value="1"></asp:ListItem>
                            <asp:ListItem Text="紧急" Value="2"></asp:ListItem>
                            <asp:ListItem Text="普通" Value="3"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr style="width: 100%; height: 35px">
                    <td colspan="2" class="style2" style="border-right: #bdcaea 1px solid; border-bottom: #bdcaea 1px solid;">
                        <span style="font-size: 10pt;">&nbsp;流程名称: </span>
                        <asp:TextBox runat="server" ID="txtFlowCaption" Width="302px"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
        <div style="width: 100%; height: 165px">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="bg_up" align="center">
                <tr>
                    <td style="height: 15px; border: 1px;" class="title_1" colspan="2">
                    </td>
                </tr>
                <tr>
                    <td class="style1" style="width: 100%" colspan="2">
                        <hr />
                    </td>
                </tr>
                <tr style="width: 100%; height: 35px">
                    <td class="style2" style="border-right: #bdcaea 1px solid; border-bottom: #bdcaea 1px solid;
                        border-top: #bdcaea 1px solid;">
                        <span style="font-size: 10pt;">&nbsp;创建人:</span>
                        <input type="hidden" id="CustomId" runat="server" name="CustomId" />
                        &nbsp;<input id="txtCustomId" runat="server" readonly="readonly" name="txtCustomId"
                            type="text" style="width: 200px;" />
                        <button id="btnCustomId" name="n" type="button" class="btnCheck" style="width: 65px;">
                            选择用户</button>
                    </td>
                    <td style="border-bottom: #bdcaea 1px solid; border-top: #bdcaea 1px solid;">
                    </td>
                </tr>
                <tr>
                    <td class="style1" style="width: 100%" colspan="2">
                        <hr />
                    </td>
                </tr>
                <tr style="width: 100%; height: 35px">
                    <td class="style2" style="border-right: #bdcaea 1px solid; border-bottom: #bdcaea 1px solid;">
                        <span style="font-size: 10pt">&nbsp;流程创建时间:</span>
                        <input name="StartDate" class="title_1" type="text" size="13" style="width: 140px;"
                            readonly="readonly" id="Start_Date" runat="server" onclick="WdatePicker({el:'Start_Date',dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
                        <span style="font-size: 10pt">至</span>
                        <input name="StartEndDate" class="title_1" type="text" size="13" style="width: 140px;"
                            readonly="readonly" id="Start_EndDate" runat="server" onclick="WdatePicker({el:'Start_EndDate',dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
                    </td>
                    <td class="title_1" style="width: 50%; border-bottom: #bdcaea 1px solid;">
                        <span style="font-size: 10pt">流程归档时间:</span>
                        <input name="ReportDate" class="title_1" type="text" size="13" style="width: 140px;"
                            readonly="readonly" id="Report_Date" runat="server" onclick="WdatePicker({el:'Report_Date',dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'Start_Date\')}'})" />
                        <span style="font-size: 10pt">至</span>
                        <input name="ReportEndDate" class="title_1" type="text" size="13" style="width: 140px;"
                            readonly="readonly" id="Report_EndDate" runat="server" onclick="WdatePicker({el:'Report_EndDate',dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'Start_Date\')}'})" />
                    </td>
                </tr>
                <tr style="width: 100%; height: 35px">
                    <td class="title_1" style="width: 50%; border-bottom: #bdcaea 1px solid; border-top: #bdcaea 1px solid;">
                        <span style="font-size: 10pt">&nbsp;流程审批时间: </span>
                        <input name="OperDateTime" class="title_1" type="text" size="13" style="width: 140px;"
                            readonly="readonly" id="Oper_DateTime" runat="server" onclick="WdatePicker({el:'Oper_DateTime',dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
                        <span style="font-size: 10pt">至</span>
                         <input name="OperDateEndTime" class="title_1" type="text" size="13" style="width: 140px;"
                            readonly="readonly" id="Oper_DateEndTime" runat="server" onclick="WdatePicker({el:'Oper_DateEndTime',dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
                    </td>
                    <td class="title_1" style="width: 50%; border-bottom: #bdcaea 1px solid; border-top: #bdcaea 1px solid;">
                        <span style="font-size: 10pt">流程到达时间: </span>
                        <input name="StartTime" class="title_1" type="text" size="13" style="width: 140px;"
                            readonly="readonly" id="taskStartTime" runat="server" onclick="WdatePicker({el:'taskStartTime',dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
                        <span style="font-size: 10pt">至</span>
                          <input name="StartEndTime" class="title_1" type="text" size="13" style="width: 140px;"
                            readonly="readonly" id="taskEndTime" runat="server" onclick="WdatePicker({el:'taskEndTime',dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
                    </td>
                </tr>
                <tr style="width: 100%; height: 35px">
                    <td colspan="2" style="border: 1px solid #CCCCCC; border-bottom: none; width: 100%;"
                        align="center">
                        <asp:Label ID="lblhelid" runat="server" Visible="true" Width="43%"></asp:Label>
                        <asp:Button runat="server" ID="btnSearch" Text="查询" Width="66px" OnClick="btnSearch_Click" />
                        <asp:Button runat="server" ID="btnCancel" Text="取消" Width="66px" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="yui-skin-sam">
                        <div id="dialog3" class="yui-pe-content" />
                        <div class="hd">
                        </div>
                        <div class="bd">
                            <iframe id="EditUIWindow4" frameborder="0" src="" style="width: 100%; height: 100%;
                                margin: 0px; padding: 0px;"></iframe>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
